babl.git
16 years agoMake use of system return value to avoid warnings
Danny Robson [Sun, 19 Jul 2009 09:31:47 +0000 (19:31 +1000)]
Make use of system return value to avoid warnings

Make (minimal) use of system's return value to avoid gcc complaining, as
it's declared using the warn_unused_result attribute.

16 years agoUse pointer integer types for comparisons
Danny Robson [Sun, 19 Jul 2009 09:24:54 +0000 (19:24 +1000)]
Use pointer integer types for comparisons

Convert all occurences of pointer arithmetic using integral types to use
the standard ptrdiff_t and intptr_t types. Fixes some build warnings.

16 years agoIncorporate minor version in soname
Martin Nordholts [Fri, 17 Jul 2009 18:19:38 +0000 (20:19 +0200)]
Incorporate minor version in soname

Incorporate minor version in soname. We do this to compensate for the
immaturity of the API and future ABI/API breakage.

16 years agoEnable automake silent-rules by default
Martin Nordholts [Tue, 14 Jul 2009 18:06:27 +0000 (20:06 +0200)]
Enable automake silent-rules by default

Enable silent build rules by default, requires at least
Automake-1.11. Disable by either passing --disable-silent-rules to
configure or passing V=1 to make.

16 years agoGenerate ChangeLog from git log
Martin Nordholts [Tue, 14 Jul 2009 17:55:20 +0000 (19:55 +0200)]
Generate ChangeLog from git log

Add rule to generate ChangeLog from git log, copied from pango and
Behdad Esfahbod. Also disable the rss generation in docs since the rss
tool can't handle the git log format.

16 years agoUpdate .gitignore
Martin Nordholts [Tue, 14 Jul 2009 17:40:16 +0000 (19:40 +0200)]
Update .gitignore

16 years agoextensions: Explicitly specify sources
Martin Nordholts [Tue, 14 Jul 2009 17:39:59 +0000 (19:39 +0200)]
extensions: Explicitly specify sources

Explicitly specify extension sources since there seems to be some
problem with AM_DEFAULT_SOURCE_EXT with automake-1.11.

16 years agobabl: Don't declare functions with external linkage as inline
Martin Nordholts [Tue, 14 Jul 2009 17:33:56 +0000 (19:33 +0200)]
babl: Don't declare functions with external linkage as inline

Don't declare functions with external linkage as inline. The way we
did it is forbidden in C99 and causes compilation problems on other
platforms. See bug #572154.

16 years agoUpdate SVN reference to git
Martin Nordholts [Tue, 23 Jun 2009 04:28:17 +0000 (06:28 +0200)]
Update SVN reference to git

16 years agorequire automake >= 1.9.6 and libtool >= 1.5
Sven Neumann [Fri, 3 Jul 2009 19:04:58 +0000 (21:04 +0200)]
require automake >= 1.9.6 and libtool >= 1.5

16 years agoAdd babl.doap
Martin Nordholts [Sat, 23 May 2009 11:41:20 +0000 (13:41 +0200)]
Add babl.doap

16 years agoBug 583565 – babl 0.1.0 build fixes
Fryderyk Dziarmagowski [Sat, 23 May 2009 10:55:39 +0000 (12:55 +0200)]
Bug 583565 – babl 0.1.0 build fixes

Don't apply dynamic library versioning to the babl extensions.

16 years agoBug 583565 – babl 0.1.0 build fixes
Fryderyk Dziarmagowski [Sat, 23 May 2009 10:49:25 +0000 (12:49 +0200)]
Bug 583565 – babl 0.1.0 build fixes

The DESTDIR variable should not be used in a Makefile.am.

16 years agoObsolete the ChangeLog file
Martin Nordholts [Wed, 20 May 2009 23:44:31 +0000 (01:44 +0200)]
Obsolete the ChangeLog file

16 years agoBump version to 0.1.1
Martin Nordholts [Wed, 20 May 2009 23:44:18 +0000 (01:44 +0200)]
Bump version to 0.1.1

16 years ago0.1.0 released
Martin Nordholts [Tue, 19 May 2009 18:30:50 +0000 (20:30 +0200)]
0.1.0 released

16 years agoBump version to 0.1.0
Martin Nordholts [Tue, 19 May 2009 18:04:21 +0000 (20:04 +0200)]
Bump version to 0.1.0

Bump version to 0.1.0 and make sure the link name remains `babl-0.0'.

16 years agodocs: Add .libs directories to BABL_PATHs
Martin Nordholts [Wed, 20 May 2009 20:27:27 +0000 (22:27 +0200)]
docs: Add .libs directories to BABL_PATHs

Also add .libs directories to the BABL_PATHs so that e.g. the
BablFishPath introspection chart is properly generated when doing a
build, at least on Linux.

16 years agodocs: Convert SVN references to git
Martin Nordholts [Wed, 20 May 2009 17:30:18 +0000 (19:30 +0200)]
docs: Convert SVN references to git

16 years agoUpdate ChangeLog
Martin Nordholts [Tue, 19 May 2009 17:59:15 +0000 (19:59 +0200)]
Update ChangeLog

16 years agoUpdate NEWS with release date
Martin Nordholts [Tue, 19 May 2009 18:13:14 +0000 (20:13 +0200)]
Update NEWS with release date

16 years agoFinish update of AUTHORS..
Martin Nordholts [Tue, 19 May 2009 05:39:40 +0000 (07:39 +0200)]
Finish update of AUTHORS..

16 years agoUpdate AUTHORS and NEWS for 0.1.0
Martin Nordholts [Tue, 19 May 2009 05:24:50 +0000 (07:24 +0200)]
Update AUTHORS and NEWS for 0.1.0

16 years agoAdd extern "C" to the header for C++ friendliness.
Hubert Figuiere [Sat, 16 May 2009 07:27:03 +0000 (03:27 -0400)]
Add extern "C" to the header for C++ friendliness.

16 years agoBug 568576 – [PATCH] undefined operation fix
Martin Nordholts [Sat, 4 Apr 2009 19:46:35 +0000 (19:46 +0000)]
Bug 568576 – [PATCH] undefined operation fix

Patch from Stanislav Brabec

svn path=/trunk/; revision=415

16 years agoUpdate AUTHORS for 0.1.0
Martin Nordholts [Sat, 4 Apr 2009 10:21:20 +0000 (10:21 +0000)]
Update AUTHORS for 0.1.0

svn path=/trunk/; revision=414

16 years agoextensions: util.h is part of the source
Martin Nordholts [Sat, 4 Apr 2009 09:32:42 +0000 (09:32 +0000)]
extensions: util.h is part of the source

make distcheck passes now

svn path=/trunk/; revision=413

16 years agobabl/Makefile.am: Add forgotten header files
Martin Nordholts [Sat, 4 Apr 2009 09:32:38 +0000 (09:32 +0000)]
babl/Makefile.am: Add forgotten header files

babl/Makefile.am: Add forgotten header files that needs to be
distributed with a release.

svn path=/trunk/; revision=412

16 years agoMakefile.am: We don't have a COPYING.LESSER anymore
Martin Nordholts [Sat, 4 Apr 2009 09:32:34 +0000 (09:32 +0000)]
Makefile.am: We don't have a COPYING.LESSER anymore

svn path=/trunk/; revision=411

16 years agoUpdate ChangeLog with previous commit
Martin Nordholts [Sat, 4 Apr 2009 09:32:31 +0000 (09:32 +0000)]
Update ChangeLog with previous commit

svn path=/trunk/; revision=410

16 years agoUpdate NEWS for 0.1.0
Martin Nordholts [Wed, 1 Apr 2009 19:37:12 +0000 (19:37 +0000)]
Update NEWS for 0.1.0

svn path=/trunk/; revision=409

16 years agoAvoid the need for define __func__ "unknown" on some vendor compilers
Martin Nordholts [Tue, 31 Mar 2009 17:09:42 +0000 (17:09 +0000)]
Avoid the need for define __func__ "unknown" on some vendor compilers

Patch from Gary V. Vaughan

svn path=/trunk/; revision=408

16 years agoDon't try to pass gcc flags to vendor compilers
Martin Nordholts [Tue, 31 Mar 2009 17:09:38 +0000 (17:09 +0000)]
Don't try to pass gcc flags to vendor compilers

Patch from Gary V. Vaughan

svn path=/trunk/; revision=407

16 years agoRewrite xml-insert.sh in portable bourne-shell
Martin Nordholts [Tue, 31 Mar 2009 17:09:34 +0000 (17:09 +0000)]
Rewrite xml-insert.sh in portable bourne-shell

Patch from Gary V. Vaughan

svn path=/trunk/; revision=406

16 years agoDon't use depecrated features or reduntant declarations in Makefile.am
Martin Nordholts [Tue, 31 Mar 2009 17:09:29 +0000 (17:09 +0000)]
Don't use depecrated features or reduntant declarations in Makefile.am

Patch from Gary V. Vaughan

svn path=/trunk/; revision=405

16 years agoSupport hpux use of shl load/unload and dsos with .sl suffixes
Martin Nordholts [Tue, 31 Mar 2009 17:09:22 +0000 (17:09 +0000)]
Support hpux use of shl load/unload and dsos with .sl suffixes

Patch from Gary V. Vaughan

svn path=/trunk/; revision=404

16 years agoApplied patch from Matteo 'Peach' Pescarin which makes build use rsvg
Kevin Cozens [Fri, 27 Mar 2009 20:13:01 +0000 (20:13 +0000)]
Applied patch from Matteo 'Peach' Pescarin which makes build use rsvg

* configure.ac:
* docs/graphics/Makefile.am: Applied patch from Matteo 'Peach'
Pescarin which makes build use rsvg binary instead of inkscape
to create pngs. Fixes bug 571516.

svn path=/trunk/; revision=403

16 years agoBABL_VARIADIC_MACROS needs to be called before the libtool stuff (which
Manish Singh [Thu, 26 Mar 2009 22:26:38 +0000 (22:26 +0000)]
BABL_VARIADIC_MACROS needs to be called before the libtool stuff (which

* configure.ac: BABL_VARIADIC_MACROS needs to be called before
the libtool stuff (which implicitly calls AC_PROG_CXX)

svn path=/trunk/; revision=402

16 years agoNULL-statements caused by trailing commas are non-portable
Martin Nordholts [Wed, 25 Mar 2009 19:02:39 +0000 (19:02 +0000)]
NULL-statements caused by trailing commas are non-portable

Patch from Gary V. Vaughan

svn path=/trunk/; revision=401

16 years agoHandle variadic macros in a portable way
Martin Nordholts [Wed, 25 Mar 2009 19:02:35 +0000 (19:02 +0000)]
Handle variadic macros in a portable way

Apply patch from Gary V. Vaughan that adds configure time checks for
variadic macros and adapts the definitions of such macros in-code
accordingly so that babl can be compiled on more platforms.

svn path=/trunk/; revision=400

16 years agoSome vendor compilers can't compile non-constant elements of compound struct initializers
Martin Nordholts [Wed, 25 Mar 2009 19:02:31 +0000 (19:02 +0000)]
Some vendor compilers can't compile non-constant elements of compound struct initializers

Patch from Gary V. Vaughan

svn path=/trunk/; revision=399

16 years agoSome vendor C compilers choke on C++ comments
Martin Nordholts [Wed, 25 Mar 2009 19:02:28 +0000 (19:02 +0000)]
Some vendor C compilers choke on C++ comments

Patch from Gary V. Vaughan

svn path=/trunk/; revision=398

16 years agoenum values must be less than INT_MAX (sign bit is illegal)
Martin Nordholts [Wed, 25 Mar 2009 19:02:24 +0000 (19:02 +0000)]
enum values must be less than INT_MAX (sign bit is illegal)

Patch from Gary V. Vaughan

svn path=/trunk/; revision=397

16 years agoRemove trailing comma in enum declaration
Martin Nordholts [Wed, 25 Mar 2009 19:02:20 +0000 (19:02 +0000)]
Remove trailing comma in enum declaration

Patch from Gary V. Vaughan

svn path=/trunk/; revision=396

16 years agoInclude config.h in some files that missed it
Martin Nordholts [Wed, 25 Mar 2009 19:02:17 +0000 (19:02 +0000)]
Include config.h in some files that missed it

Patch from Gary V. Vaughan

svn path=/trunk/; revision=395

17 years agobased on a patch from Gary V. Vaughan, include "config.h" before any other
Sven Neumann [Tue, 24 Feb 2009 21:17:27 +0000 (21:17 +0000)]
based on a patch from Gary V. Vaughan, include "config.h" before any other

2009-02-24  Sven Neumann  <sven@gimp.org>

* */*.c: based on a patch from Gary V. Vaughan, include
"config.h"
before any other header file from all .c files.

* babl/babl-internal.h
* extensions/util.h: instead of including config.h from here,
bail
out if it wasn't included beforehand.

svn path=/trunk/; revision=394

17 years agoAdd .gitignore files generated with git svn create-ignore
Martin Nordholts [Fri, 20 Feb 2009 21:18:56 +0000 (21:18 +0000)]
Add .gitignore files generated with git svn create-ignore

svn path=/trunk/; revision=393

17 years agoInclude headers in babl.h as system headers
Martin Nordholts [Fri, 20 Feb 2009 21:10:03 +0000 (21:10 +0000)]
Include headers in babl.h as system headers

svn path=/trunk/; revision=392

17 years agobabl/babl.h renamed babl_format_get_num_of_components() to
Sven Neumann [Mon, 26 Jan 2009 08:59:14 +0000 (08:59 +0000)]
babl/babl.h renamed babl_format_get_num_of_components() to

2009-01-26  Sven Neumann  <sven@gimp.org>

* babl/babl.h
* babl/babl-format.c: renamed
babl_format_get_num_of_components()
to babl_format_get_n_components().
(babl_format_has_alpha): changed accordingly.

svn path=/trunk/; revision=391

17 years agoDo a complete overhaul of the babl API.
Martin Nordholts [Sat, 24 Jan 2009 08:52:04 +0000 (08:52 +0000)]
Do a complete overhaul of the babl API.

* babl/babl.h: Instead of including subsystem headers, declare the
functions part of the API directly in the header. The public
types, macros and the version header is still pulled in as
includes but with inclusion guards that prevent them from being
included separately by clients. Notable things removed from the
API is internal class functions and the class instance structs.

(babl_format_has_alpha)
(babl_format_get_bytes_per_pixel)
(babl_format_get_num_of_components)
(babl_format_get_type): New getters to allow the Babl union to
become opaque for clients.

* babl/babl-types.h: New file with public types. Currently only
the opaque Babl union and the linear and planar conversion
function prototypes (which are not used in the API due to the use
of varags but still part of the API for reference) are there. Make
sure it's only included indirectly through babl.h.

* babl/babl-macros.h
* babl/babl-version.h.in: Make sure these are not included
directly, only indirectly through babl.h.

* babl/babl-main.h: Removed, function declarations are in babl.h
now.

* babl/babl-internal.h: Include the headers we now consider
internal, mostly the different class headers.

* babl/babl-class.h: The "named class" function declarations are
now in the public header so move them away from this internal
header.

* babl/babl-image.h
* babl/babl-format.h
* babl/babl-fish.h
* babl/babl-extension.h
* babl/babl-conversion.h
* babl/babl-component.h
* babl/babl-classes.h
* babl/babl-introspect.h
* babl/babl-sampling.h
* babl/babl-model.h
* babl/babl-type.h: Adapt to above changes, move relevant things to babl.h

* babl/base/formats.c
* babl/base/model-gray.c
* babl/base/model-rgb.c
* babl/base/model-ycbcr.c
* babl/base/type-float.c: Explicitly #include "babl-classes.h".

* babl/babl-internal.c: s/babl_name/babl_get_name/

* babl/babl-format.c
(babl_format_has_alpha)
(babl_format_get_bytes_per_pixel)
(babl_format_get_num_of_components)
(babl_format_get_type): Implement these.

* babl/Makefile.am: Don't install the now internal headers and
add, remove and install the other headers according to above
changes.

svn path=/trunk/; revision=390

17 years agoSince babl_foo_from_id() will not be part of the public API we can
Martin Nordholts [Tue, 20 Jan 2009 19:29:49 +0000 (19:29 +0000)]
Since babl_foo_from_id() will not be part of the public API we can
revert to having the short variant babl_foo() instead of
babl_foo_from_name().

* babl/babl-class.h
* babl/babl-component.h
* babl/babl-conversion.c
* babl/babl-conversion.h
* babl/babl-extension.h
* babl/babl-fish-path.c
* babl/babl-fish.c
* babl/babl-format.c
* babl/babl-format.h
* babl/babl-image.c
* babl/babl-internal.h
* babl/babl-model.c
* babl/babl-model.h
* babl/babl-type.c
* babl/babl-type.h
* extensions/CIE-Lab.c
* extensions/frequency.c
* extensions/gegl-fixups.c
* extensions/gggl-lies.c
* extensions/gggl.c
* extensions/gimp-8bit.c
* extensions/naive-CMYK.c
* extensions/sse-fixups.c
* tests/grayscale_to_rgb.c
* tests/rgb_to_bgr.c
* tests/rgb_to_ycbcr.c

svn path=/trunk/; revision=389

17 years agoAdd include guards.
Martin Nordholts [Sun, 18 Jan 2009 18:18:19 +0000 (18:18 +0000)]
Add include guards.

* babl/babl-component.h
* babl/babl-conversion.h
* babl/babl-extension.h
* babl/babl-fish.h
* babl/babl-format.h
* babl/babl-image.h
* babl/babl-model.h
* babl/babl-sampling.h
* babl/babl-type.h

svn path=/trunk/; revision=388

17 years agoNamespace the include guard.
Martin Nordholts [Sun, 18 Jan 2009 18:12:52 +0000 (18:12 +0000)]
Namespace the include guard.

* babl/babl-db.h: Namespace the include guard.

svn path=/trunk/; revision=387

17 years agoDo a s/babl_destroy/babl_exit since 'destroy' is better paired
Martin Nordholts [Sun, 18 Jan 2009 15:14:59 +0000 (15:14 +0000)]
Do a s/babl_destroy/babl_exit since 'destroy' is better paired
with a 'create' and other libraries also use the 'init'/'exit'
pair, including GEGL. Keep a define for babl_destroy unless
BABL_DISABLE_DEPRECATED is defined.

* babl/babl-main.h
* babl/babl.c
* tests/babl-html-dump.c
* tests/babl_class_name.c
* tests/babl_fish_path_dhtml.c
* tests/babl_fish_path_fitness.c
* tests/conversions.c
* tests/formats.c
* tests/grayscale_to_rgb.c
* tests/introspect.c
* tests/models.c
* tests/nop.c
* tests/rgb_to_bgr.c
* tests/rgb_to_ycbcr.c
* tests/sanity.c
* tests/srgb_to_lab_u8.c
* tests/types.c

svn path=/trunk/; revision=386

17 years agoNew file collecting the type constants, includes and the union for the
Martin Nordholts [Sun, 18 Jan 2009 13:33:52 +0000 (13:33 +0000)]
New file collecting the type constants, includes and the union for the

* babl/babl-classes.h: New file collecting the type constants,
includes and the union for the babl classes. When adding a new
class this is the only installed header file that requires
modification.

* babl/babl-class.h: Move the class type enums to the new file.

* babl/babl.h: Include babl-classes.h instead of each class on its
own, and move the Babl union to the new file.

* babl/Makefile.am: Add the new file.

svn path=/trunk/; revision=385

17 years agobabl/babl-component.h babl/babl-conversion.h babl/babl-extension.h
Sven Neumann [Sun, 18 Jan 2009 10:36:09 +0000 (10:36 +0000)]
babl/babl-component.h babl/babl-conversion.h babl/babl-extension.h

2009-01-18  Sven Neumann  <sven@gimp.org>

* babl/babl-component.h
* babl/babl-conversion.h
* babl/babl-extension.h
* babl/babl-format.h
* babl/babl-model.h
* babl/babl-type.h: allow to disable the defines that were added
for backward compatibility by definining
BABL_DISABLE_DEPRECATED.

* babl/babl-image.h: removed trailing whitespace.

svn path=/trunk/; revision=384

17 years agoAdd #define babl_foo babl_foo_from_name macros, that should fix
Martin Nordholts [Sun, 18 Jan 2009 07:26:43 +0000 (07:26 +0000)]
Add #define babl_foo babl_foo_from_name macros, that should fix
most builds that broke due to the below refactoring.

* babl/babl-component.h
* babl/babl-conversion.h
* babl/babl-extension.h
* babl/babl-format.h
* babl/babl-model.h
* babl/babl-type.h

svn path=/trunk/; revision=383

17 years agos/babl_image/babl_image_new/
Martin Nordholts [Sat, 17 Jan 2009 21:31:48 +0000 (21:31 +0000)]
s/babl_image/babl_image_new/

* babl/babl-fish-reference.c
* babl/babl-image.c
* babl/babl-image.h

svn path=/trunk/; revision=382

17 years agos/babl_foo_init/babl_foo_class_init/
Martin Nordholts [Sat, 17 Jan 2009 19:30:40 +0000 (19:30 +0000)]
s/babl_foo_init/babl_foo_class_init/
s/babl_foo_destroy/babl_foo_class_destroy/
s/babl_foo_each/babl_foo_class_for_each/
s/babl_foo/babl_foo_from_name/
s/babl_foo_id/babl_foo_from_id/

* babl/babl-class.h
* babl/babl-conversion.c
* babl/babl-core.c
* babl/babl-fish-path.c
* babl/babl-fish-reference.c
* babl/babl-fish-stats.c
* babl/babl-fish.c
* babl/babl-format.c
* babl/babl-image.c
* babl/babl-internal.h
* babl/babl-introspect.c
* babl/babl-model.c
* babl/babl-sampling.c
* babl/babl-sanity.c
* babl/babl-type.c
* babl/babl.c
* babl/base/formats.c
* babl/base/model-gray.c
* babl/base/model-rgb.c
* babl/base/model-ycbcr.c
* babl/base/type-float.c
* babl/base/type-u16.c
* babl/base/type-u32.c
* babl/base/type-u8.c
* extensions/CIE-Lab.c
* extensions/frequency.c
* extensions/gegl-fixups.c
* extensions/gggl-lies.c
* extensions/gggl.c
* extensions/gimp-8bit.c
* extensions/naive-CMYK.c
* extensions/sse-fixups.c
* tests/babl-html-dump.c
* tests/babl_fish_path_fitness.c
* tests/conversions.c
* tests/formats.c
* tests/grayscale_to_rgb.c
* tests/models.c
* tests/rgb_to_bgr.c
* tests/rgb_to_ycbcr.c
* tests/types.c

svn path=/trunk/; revision=381

17 years agoFix bogus ChangeLog formating in two of my recent entries.
Martin Nordholts [Sat, 17 Jan 2009 18:45:56 +0000 (18:45 +0000)]
Fix bogus ChangeLog formating in two of my recent entries.

svn path=/trunk/; revision=380

17 years agoRemove babl_name() and babl_introspect() which slipped in here.
Martin Nordholts [Sat, 17 Jan 2009 18:43:54 +0000 (18:43 +0000)]
Remove babl_name() and babl_introspect() which slipped in here.

* babl/babl-class.h: Remove babl_name() and babl_introspect()
which slipped in here.

svn path=/trunk/; revision=379

17 years agoextensions/gegl-fixups.c #include <stdlib.h>
Martin Nordholts [Sat, 17 Jan 2009 18:42:03 +0000 (18:42 +0000)]
extensions/gegl-fixups.c #include <stdlib.h>

* extensions/gegl-fixups.c
* extensions/sse-fixups.c: #include <stdlib.h>

svn path=/trunk/; revision=378

17 years agoDon't #include <stdlib.h>
Martin Nordholts [Sat, 17 Jan 2009 14:49:30 +0000 (14:49 +0000)]
Don't #include <stdlib.h>

* babl/babl.h: Don't #include <stdlib.h>

* babl/base/formats.c
* babl/base/model-gray.c
* babl/base/model-rgb.c: #include <stdlib.h>

svn path=/trunk/; revision=377

17 years agoMake babl.h look clean.
Martin Nordholts [Sat, 17 Jan 2009 14:35:56 +0000 (14:35 +0000)]
Make babl.h look clean.

* babl/babl-introspect.h: New installed header for babl_name() and
babl_introspect().

* babl/babl.h: Include it.

* babl/Makefile.am: Add it.

svn path=/trunk/; revision=376

17 years agoFormating.
Martin Nordholts [Sat, 17 Jan 2009 14:20:11 +0000 (14:20 +0000)]
Formating.

* babl/babl-internal.h: Formating.

svn path=/trunk/; revision=375

17 years agoNew installed header file containing class and typesystem definitions and
Martin Nordholts [Sat, 17 Jan 2009 14:16:18 +0000 (14:16 +0000)]
New installed header file containing class and typesystem definitions and

* babl/babl-class.h: New installed header file containing class
and typesystem definitions and types.

* babl/babl.h: Include it.

* babl/Makefile.am: Add it.

svn path=/trunk/; revision=374

17 years agoMove forward declaration of BablList to the beginning...
Martin Nordholts [Sat, 17 Jan 2009 14:05:23 +0000 (14:05 +0000)]
Move forward declaration of BablList to the beginning...

svn path=/trunk/; revision=373

17 years agoMove up forward declaration of BablList.
Martin Nordholts [Sat, 17 Jan 2009 14:03:37 +0000 (14:03 +0000)]
Move up forward declaration of BablList.

* babl/babl.h: Move up forward declaration of BablList.

* babl/babl-list.h: Completely rely on that declaration.

svn path=/trunk/; revision=372

17 years agoDon't have BABL_ALPHA_THRESHOLD public yet.
Martin Nordholts [Sat, 17 Jan 2009 13:47:52 +0000 (13:47 +0000)]
Don't have BABL_ALPHA_THRESHOLD public yet.

* babl/babl.h: Don't have BABL_ALPHA_THRESHOLD public yet.

* babl/base/util.h: Put it here for now instead.

svn path=/trunk/; revision=371

17 years agoInstead of having BABL_CLASS() plus variants and making the macros
Martin Nordholts [Sat, 17 Jan 2009 13:33:49 +0000 (13:33 +0000)]
Instead of having BABL_CLASS() plus variants and making the macros
expand to different things depending on if they are used in a
header or a .c file, have two versions: BABL_CLASS_DECLARE() and
BABL_CLASS_IMPLEMENT(). This enables further refactorisations of
the babl.h header.

* babl.h: Do the name changes and remove the unpleasant #undefs at
the bottom.

* babl-internal.h: Do the name changes.

* babl-component.[ch]
* babl-conversion.[ch]
* babl-extension.[ch]
* babl-fish.[ch]
* babl-format.[ch]
* babl-image.h
* babl-model.[ch]
* babl-sampling.h
* babl-type.[ch]: Adjust to changes.

svn path=/trunk/; revision=370

17 years agoDon't redeclare functions declared with the BABL_CLASS() or
Martin Nordholts [Sat, 17 Jan 2009 13:06:48 +0000 (13:06 +0000)]
Don't redeclare functions declared with the BABL_CLASS() or
BABL_NAMED_CLASS() macros.

* babl-component.h
* babl-conversion.h
* babl-extension.h
* babl-fish.h
* babl-format.h
* babl-image.h
* babl-model.h
* babl-sampling.h
* babl-type.h

svn path=/trunk/; revision=369

17 years agoNew installed file with babl_init() and babl_destroy() declarations.
Martin Nordholts [Sat, 17 Jan 2009 10:58:59 +0000 (10:58 +0000)]
New installed file with babl_init() and babl_destroy() declarations.

* babl/babl-main.h: New installed file with babl_init() and
babl_destroy() declarations.

* babl/babl.h: Include it.

* babl/Makefile.am: Add it.

svn path=/trunk/; revision=368

17 years agoNew installed header file that contains portability macros.
Martin Nordholts [Sat, 17 Jan 2009 10:43:32 +0000 (10:43 +0000)]
New installed header file that contains portability macros.

* babl/babl-macros.h: New installed header file that contains
portability macros.

* babl/babl.h: Include it and don't define portability macros
here.

* babl/Makefile.am: Add it.

svn path=/trunk/; revision=367

17 years agoMake BablClassType an int again, it doesn't make sense as an enum as the
Martin Nordholts [Thu, 15 Jan 2009 20:14:16 +0000 (20:14 +0000)]
Make BablClassType an int again, it doesn't make sense as an enum as the

* babl/babl.h: Make BablClassType an int again, it doesn't make
sense as an enum as the set of class types is not a natural
predefined set.

svn path=/trunk/; revision=366

17 years agoFix misformated entry.
Martin Nordholts [Thu, 15 Jan 2009 19:25:27 +0000 (19:25 +0000)]
Fix misformated entry.

svn path=/trunk/; revision=365

17 years agoMake BablClassType an enum instead of an unsigned int contaning enum
Martin Nordholts [Wed, 14 Jan 2009 20:59:41 +0000 (20:59 +0000)]
Make BablClassType an enum instead of an unsigned int contaning enum

* babl/babl.h: Make BablClassType an enum instead of an unsigned
int contaning enum values.

svn path=/trunk/; revision=364

17 years agoUse a lowercase 'a' in 0xbab100.
Martin Nordholts [Wed, 14 Jan 2009 20:42:09 +0000 (20:42 +0000)]
Use a lowercase 'a' in 0xbab100.

* babl/babl.h: Use a lowercase 'a' in 0xbab100.

svn path=/trunk/; revision=363

17 years agoDon't document forward declarations and move them down a bit to make them
Martin Nordholts [Wed, 14 Jan 2009 20:38:47 +0000 (20:38 +0000)]
Don't document forward declarations and move them down a bit to make them

* babl/babl.h: Don't document forward declarations and move them
down a bit to make them less eminent.

svn path=/trunk/; revision=362

17 years agoRemove BABL_HARD_MAX_PATH_LENGTH from here, it's only for internal use.
Martin Nordholts [Wed, 14 Jan 2009 20:06:58 +0000 (20:06 +0000)]
Remove BABL_HARD_MAX_PATH_LENGTH from here, it's only for internal use.

* babl/babl.h:
* babl/babl-internal.h: Remove BABL_HARD_MAX_PATH_LENGTH from
here, it's only for internal use.

* babl/babl-fish-path.c: #define BABL_HARD_MAX_PATH_LENGTH locally
here.

svn path=/trunk/; revision=361

17 years agoInstead of an arbitrary threshold, use one hundredth of the channel
Martin Nordholts [Wed, 14 Jan 2009 19:39:56 +0000 (19:39 +0000)]
Instead of an arbitrary threshold, use one hundredth of the channel

* babl/babl.h (BABL_ALPHA_THRESHOLD): Instead of an arbitrary
threshold, use one hundredth of the channel intensity resolution
when using 16 bit integers i.e. 0.01 / (2^16 - 1).

svn path=/trunk/; revision=360

17 years agoDon't just eek when an assertion fails, also say exactly what failed.
Martin Nordholts [Mon, 8 Dec 2008 18:28:39 +0000 (18:28 +0000)]
Don't just eek when an assertion fails, also say exactly what failed.

* babl/babl-internal.h (babl_assert): Don't just eek when an
assertion fails, also say exactly what failed.

svn path=/trunk/; revision=359

17 years agoshow in red the conversions that are worse than the current BABL_TOLERANCE
Øyvind Kolås [Sun, 16 Nov 2008 20:35:57 +0000 (20:35 +0000)]
show in red the conversions that are worse than the current BABL_TOLERANCE

* babl/babl-fish-stats.c: (legal_error), (each_conv): show in red the
conversions that are worse than the current BABL_TOLERANCE instead of
the earlier arbitrary 0.01.

svn path=/trunk/; revision=358

17 years agoUse the default babl tolerance level if BABL_TOLERANCE is the empty string
Martin Nordholts [Sun, 16 Nov 2008 12:55:17 +0000 (12:55 +0000)]
Use the default babl tolerance level if BABL_TOLERANCE is the empty string

* babl/babl-fish-path.c: Use the default babl tolerance level if
BABL_TOLERANCE is the empty string so that we don't get a
tolerance level of 0.0 in that case.

svn path=/trunk/; revision=357

17 years agoAdd #define BABL_ALPHA_THRESHOLD which is the alpha threshold used in the
Martin Nordholts [Sun, 16 Nov 2008 12:36:50 +0000 (12:36 +0000)]
Add #define BABL_ALPHA_THRESHOLD which is the alpha threshold used in the

* babl/babl.h: Add #define BABL_ALPHA_THRESHOLD which is the alpha
threshold used in the reference implementation for
un-pre-multiplication of color data.

* babl/base/model-rgb.c
* babl/base/model-gray.c
* extensions/gegl-fixups.c: Use the define, a consistent alpha
threshold improves accurucy of conversions.

svn path=/trunk/; revision=356

17 years agoextensions/gegl-fixups.c (conv_rgbAF_sdl32) Make un-pre-multiplication
Martin Nordholts [Sun, 16 Nov 2008 12:12:19 +0000 (12:12 +0000)]
extensions/gegl-fixups.c (conv_rgbAF_sdl32) Make un-pre-multiplication

* extensions/gegl-fixups.c (conv_rgbAF_sdl32)
* babl/base/model-gray.c (premultiplied_to_non_premultiplied):
Make un-pre-multiplication with close-to-zero alpha values result
in complete black instead of a bit brigher than black.

svn path=/trunk/; revision=355

17 years agouse the lookup tables to speed up the conversion 8still error of 0.002677
Øyvind Kolås [Sat, 8 Nov 2008 23:20:29 +0000 (23:20 +0000)]
use the lookup tables to speed up the conversion 8still error of 0.002677

* extensions/gegl-fixups.c: (conv_rgbAF_lrgba8): use the lookup tables
to speed up the conversion 8still error of 0.002677 though).

svn path=/trunk/; revision=354

17 years agomake all components 0.0 when alpha < 0.00001.
Øyvind Kolås [Thu, 6 Nov 2008 20:19:20 +0000 (20:19 +0000)]
make all components 0.0 when alpha < 0.00001.

* extensions/gegl-fixups.c: (conv_rgbAF_rgbaF),
(conv_rgbAF_lrgba8): make all components 0.0 when alpha < 0.00001.

svn path=/trunk/; revision=353

17 years agoadded some more missing conversions.
Øyvind Kolås [Tue, 4 Nov 2008 00:31:34 +0000 (00:31 +0000)]
added some more missing conversions.

* extensions/gegl-fixups.c: (conv_rgbAF_rgbaF),
(conv_rgbAF_lrgba8), (init): added some more missing conversions.

svn path=/trunk/; revision=352

17 years agoadded missing, needed conversion.
Øyvind Kolås [Tue, 4 Nov 2008 00:04:23 +0000 (00:04 +0000)]
added missing, needed conversion.

* extensions/gegl-fixups.c: (conv_rgbaF_rgbAF), (init): added missing,
needed conversion.

svn path=/trunk/; revision=351

17 years agorenamed to ..
Øyvind Kolås [Wed, 1 Oct 2008 20:39:39 +0000 (20:39 +0000)]
renamed to ..

* COPYING.LESSER: renamed to ..
* COPYING:

svn path=/trunk/; revision=350

17 years ago`:='-style assignments are not portable
Sven Neumann [Wed, 9 Jul 2008 13:24:52 +0000 (13:24 +0000)]
`:='-style assignments are not portable

2008-07-09  Sven Neumann  <sven@gimp.org>

* babl/base/Makefile.am: `:='-style assignments are not portable

svn path=/trunk/; revision=349

17 years agoalso use AM_CPPFLAGS and CPPFLAGS for building sse-fixups.
Sven Neumann [Fri, 4 Jul 2008 12:47:51 +0000 (12:47 +0000)]
also use AM_CPPFLAGS and CPPFLAGS for building sse-fixups.

2008-07-04  Sven Neumann  <sven@gimp.org>

* extensions/Makefile.am: also use AM_CPPFLAGS and CPPFLAGS for
building sse-fixups.

svn path=/trunk/; revision=348

17 years agoadded typedef size_t gsize to the set of gtypes lifted from glib. spotted
Øyvind Kolås [Tue, 1 Jul 2008 21:23:52 +0000 (21:23 +0000)]
added typedef size_t gsize to the set of gtypes lifted from glib. spotted

* babl/babl-cpuaccel.c: added typedef size_t gsize to the set of
gtypes lifted from glib. spotted by Marianne Gagnon.

svn path=/trunk/; revision=347

17 years agoapplied patch from dmacks at netspace.org cleaning up some of the build
Øyvind Kolås [Tue, 1 Jul 2008 21:05:41 +0000 (21:05 +0000)]
applied patch from dmacks at netspace.org cleaning up some of the build

* extensions/Makefile.am: applied patch from dmacks at netspace.org
cleaning up some of the build system.

svn path=/trunk/; revision=346

17 years agochanged RrRiG... back to RrGrBrArRiGiBiAi.
Zhang Junbo [Fri, 27 Jun 2008 20:12:05 +0000 (20:12 +0000)]
changed RrRiG... back to RrGrBrArRiGiBiAi.

* extensions/frequency.c: changed RrRiG... back to RrGrBrArRiGiBiAi.

svn path=/trunk/; revision=345

17 years agosome work on frequency_to_rgba.
Zhang Junbo [Thu, 26 Jun 2008 22:27:21 +0000 (22:27 +0000)]
some work on frequency_to_rgba.

* extensions/frequency.c: some work on frequency_to_rgba.

svn path=/trunk/; revision=344

17 years agoimplenmented frequency_to_rgba.
Zhang Junbo [Thu, 26 Jun 2008 21:38:05 +0000 (21:38 +0000)]
implenmented frequency_to_rgba.

* extensions/frequency.c: implenmented frequency_to_rgba.

svn path=/trunk/; revision=343

17 years agochanged RrGrBr... into RrRiGrGiBrBiArAi.
Zhang Junbo [Sun, 22 Jun 2008 15:10:17 +0000 (15:10 +0000)]
changed RrGrBr... into RrRiGrGiBrBiArAi.

* extensions/frequency.c: changed RrGrBr... into RrRiGrGiBrBiArAi.

svn path=/trunk/; revision=342

17 years agoadded the format "frequency double".
Zhang Junbo [Sun, 22 Jun 2008 14:03:07 +0000 (14:03 +0000)]
added the format "frequency double".

* extensions/frequency.c: added the format "frequency double".

svn path=/trunk/; revision=341

17 years agoensure that the "w3m must be available" message is properly displayed:
Sam Hocevar [Mon, 16 Jun 2008 13:04:16 +0000 (13:04 +0000)]
ensure that the "w3m must be available" message is properly displayed:

* Makefile.am: ensure that the "w3m must be available" message is
properly displayed: dist-hook is only called after builddir is filled.

svn path=/trunk/; revision=340